<?php
namespace Badmins\Model;
use Think\Model;
class UserGroupModel extends Model{
	protected $_validate = array(
			array('name','require','会员等级名称必须'),
			array('name','','会员等级名称已存在',0,'unique',1),
			array('method',array(1,2),'请选择成为会员等级的方式',1,'in'),
			array('max_money','number','额度必须'),
			array('discount','double','折扣率必须'),
	);
}